namespace RMM.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class add_Evaluate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Evaluates",
                c => new
                    {
                        Id = c.Long(nullable: false, identity: true),
                        ObjectId = c.Long(nullable: false),
                        ObjectType = c.Int(nullable: false),
                        Star = c.Int(nullable: false),
                        Url = c.String(),
                        Clicks = c.Int(nullable: false),
                        LastModifierUserId = c.Long(),
                        LastModificationTime = c.DateTime(),
                        CreatorUserId = c.Long(),
                        CreationTime = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
            AddColumn("dbo.RMM_User", "Sex", c => c.Int(nullable: false));
        }
        
        public override void Down()
        {
            DropColumn("dbo.RMM_User", "Sex");
            DropTable("dbo.Evaluates");
        }
    }
}
